package com.css.fxfzypg.modules.SettingSeismic.repository;

import com.css.fxfzypg.modules.SettingSeismic.entity.SeismicIntensityRelation;
import com.css.fxfzypg.modules.SettingSeismic.entity.SettingSeismicProcess;
import com.css.fxfzypg.modules.model.entity.IntensityAttenuation;

import java.util.List;

/**
 * @Description: fxfzypg
 * @Author: lhl
 * @CreateDate: 2022/10/20 14:28
 */
public interface IntensityRelationRepository {
    Object getModelByTaskId(String taskId,String type);

    SettingSeismicProcess getProcessByTaskId(String taskId);

    SeismicIntensityRelation getByTaskId(String taskId);

    List<SeismicIntensityRelation> getAll();

    int saveSeismicIntensityRelation(SeismicIntensityRelation entity);
    int saveSettingSeismicProcess(SettingSeismicProcess entity);

    int updateSeismicIntensityRelation(SeismicIntensityRelation entity);

    int deleteSsiByTaskId(String taskId);
    int deleteSipByTaskId(String taskId);

    SettingSeismicProcess getProcessById(String id);

    void updateSeismicIntensityRelationByTaskId(String id);
}
